import type { App } from 'vue'
import {
  Button,
  Select,
  message,
  Empty,
  Result,
  Pagination,
  ConfigProvider,
  Layout,
  Menu,
  Form,
  Row,
  Col,
  Input,
  InputNumber,
  Table,
  DatePicker,
  FloatButton,
  Typography,
  Breadcrumb
} from 'ant-design-vue'
// message需要在全局入口配置
message.config({
  top: `30vh`
})
export function registerGlobComp(app: App) {
  app
    .use(Select)
    .use(Button)
    .use(Empty)
    .use(Pagination)
    .use(Result)
    .use(ConfigProvider)
    .use(Layout)
    .use(Menu)
    .use(Form)
    .use(Row)
    .use(Col)
    .use(Input)
    .use(InputNumber)
    .use(Table)
    .use(DatePicker)
    .use(FloatButton)
    .use(Typography)
    .use(Breadcrumb)
}
